<template>
	<view>
		
		<!-- 这是一个采取绝对定位方式滚动的组件 能承受数据滚动区高度超过200+, uni动画只能承受大约50- -->
		<view style="overflow: hidden;background: #EC5C53;" :style="{ height: phoneHeight + 'upx' }">
			<qzxPageScroll :list="stage" ></qzxPageScroll>
		</view>
		
	</view>
</template>

<script>
	import qzxPageScroll from '@/components/qzx_page_scroll/qzx_page_scroll';
	export default {
		components: {
			qzxPageScroll, // 滚动区
		},
		data () {
			return {
				phoneHeight: 0
			}
		},
		onLoad() {
				let _this = this;
				uni.getSystemInfo({
					success(res) {
						// windowHeight 可使用窗口高度 screenHeight 屏幕高度
						_this.phoneHeight = res.screenHeight * 2 - 90; // 计算出页面高度并且 赋值  // 体验不好,算的不准确
					}
				});
		},
		data() {
			return {
				stage:[
					{money: "8800.00元", stage: "2", status: "0", openid: "C1593163100", stages: "第 2 阶段", key: 21},
					{money: "8800.00元", stage: "2", status: "0", openid: "D1593162712", stages: "第 2 阶段", key: 22},
					{money: "8800.00元", stage: "2", status: "0", openid: "D1593231134", stages: "第 2 阶段", key: 23},
					{money: "8800.00元", stage: "2", status: "0", openid: "B1592962749", stages: "第 2 阶段", key: 24},
					{money: "8800.00元", stage: "2", status: "0", openid: "C1593326908", stages: "第 2 阶段", key: 25},
					{money: "8800.00元", stage: "2", status: "0", openid: "D1592960917", stages: "第 2 阶段", key: 26},
					{money: "8800.00元", stage: "2", status: "0", openid: "B1593266098", stages: "第 2 阶段", key: 27},
					{money: "8800.00元", stage: "2", status: "0", openid: "F1593215793", stages: "第 2 阶段", key: 28},
					{money: "8800.00元", stage: "2", status: "0", openid: "E1592961566", stages: "第 2 阶段", key: 29},
					{money: "8800.00元", stage: "2", status: "0", openid: "C1593330642", stages: "第 2 阶段", key: 30},
					{money: "8800.00元", stage: "2", status: "0", openid: "C1593411515", stages: "第 2 阶段", key: 31},
					{money: "8800.00元", stage: "2", status: "0", openid: "C1593420096", stages: "第 2 阶段", key: 32},
					{money: "8800.00元", stage: "2", status: "0", openid: "E1593397943", stages: "第 2 阶段", key: 33},
					{money: "8800.00元", stage: "2", status: "0", openid: "E1592962488", stages: "第 2 阶段", key: 34}
				],
			};
		},
		
	}
</script>

<style>
</style>
